// Thud - a dynamic object-oriented language
// Copyright (C) 2009,2010 David H. Hovemeyer <david.hovemeyer@gmail.com>

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/*
 * VM_SymbolInfo.h
 *
 *  Created on: Jan 9, 2010
 *      Author: dhovemey
 */

#ifndef VM_SYMBOLINFO_H_
#define VM_SYMBOLINFO_H_

// Each symbol is assigned a unique integer id.
typedef int32_t SymbolId;

// Symbols have both a name (string) and an integer id,
// so an instance of this struct is used as the magic value
// for symbol objects.
struct VM_SymbolInfo {
	std::wstring name;
	SymbolId symbolId;

	VM_SymbolInfo(const std::wstring &name_, SymbolId symbolId_)
		: name(name_), symbolId(symbolId_)
	{ }

	~VM_SymbolInfo()
	{ }
};

#endif /* VM_SYMBOLINFO_H_ */
